From 205181aab0ef6038035e2a5bb4081cdddbcf1106 Mon Sep 17 00:00:00 2001 From: Debian Qt/KDE Maintainers Date: Sat, 3 Sep 2022 07:15:09 +0100 Subject: [PATCH] Don't use yield on CPUs that might not support it Gbp-Pq: Name armel-noyield.patch --- src/corelib/global/qsimd_p.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/corelib/global/qsimd_p.h b/src/corelib/global/qsimd_p.h index d270d09f2..67f6733e8 100644 --- a/src/corelib/global/qsimd_p.h +++ b/src/corelib/global/qsimd_p.h @@ -428,7 +428,9 @@ static inline void qYieldCpu() https://stackoverflow.com/a/70076751/134841 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105416 */ +# if !defined(Q_CC_GNU) || (__ARM_ARCH >= 7) asm volatile("yield"); /* this works everywhere */ +# endif # else __yield(); /* this is what should work everywhere */ # endif -- 2.39.5